package com.jv.spring.direct;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class DirectMain {
	public static void main(String[] args) {
		AnnotationConfigApplicationContext ac = new AnnotationConfigApplicationContext();
		ac.register(DirectUserAA.class);
		ac.registerBean("directUserBB",DirectUserBB.class);
		ac.refresh();
		DirectUserAA useraa = (DirectUserAA)ac.getBean(DirectUserAA.class);
		System.out.println(useraa);
		DirectUserBB userbb = (DirectUserBB)ac.getBean(DirectUserBB.class);
		System.out.println(userbb);
	}
}
